<template>
	<view class="report-container">

		<view class="report-section section02">
			<view class="title">按月汇总—进项票汇总</view>
			<view class="content" v-for="item of QI.incomeStatistics">
				<view class=" bottom">
					<view class="line" v-for="td of com31[2]">
						<text class="desc">{{td[1]}}</text>
						<text class="info">{{item[td[0]]}}</text>
					</view>
				</view>
			</view>
		</view>

		<view class="report-section section02">
			<view class="title">按月汇总—销项票分类统计</view>
			<view class="content" v-for="item of QI.salesTypes">
				<view class=" bottom">

					<view class="line" v-for="td of com31[3]">
						<text class="desc">{{td[1]}}</text>
						<text class="info">{{item[td[0]]}}</text>
					</view>
				</view>
			</view>
		</view>

		<view class="report-section section02">
			<view class="title">月度发票汇总</view>
			<!-- {{QI.ydqyfpxxList}} -->
			<view class="content" v-for="(item, index) of QI.ydqyfpxxList">
				<!-- {{item.record}} -->
				<view class="bottom">
					<view class="line" v-for="td of com31[0]">
						<text class="desc">{{td[1]}}</text>
						<text class="info">{{td[0] == 'month'?  item[td[0]]:item.record[td[0]]}}</text>
					</view>
				</view>
			</view>
		</view>
		<view class="report-section section02">
			<view class="title">年度发票汇总</view>
			<view class="content" v-for="item of QI.qyfpxxList">
				<view class=" bottom">
					<view class="line" v-for="td of com31[1]">
						<text class="desc">{{td[1]}}</text>
						<text class="info">{{td[0] == 'nd'?  item[td[0]]:item.record[td[0]]}}</text>

					</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	import {
		com31
	} from '@/utils/poster.js'
	export default {
		name: "qy-swsj",
		props: {
			QI: {
				required: true,
				type: Object
			}
		},
		data() {
			return {
				com31
			}
		}
	}
</script>

<style lang="scss">
	.report-container {
		scroll-behavior: smooth;
		height: 100%;
		background: url("@/static/images/bg.png") no-repeat 0 0, #F5F6FC;

		padding: 100rpx 10rpx;

		.report-section {
			margin-top: 10rpx;
			width: 100%;
			min-height: 200rpx;
			background: url("@/static/images/section-bg.png") no-repeat -28rpx 0;
			background-size: 100% auto;
			background-color: #f0f0f0;
		}

		.section02 {
			padding-bottom: 24rpx;
			// height: 734rpx;
			box-sizing: border-box;
			background-color: #fff;
			border-radius: 16rpx;
			padding: 10rpx 30rpx;

			.content {

				.bottom {
					padding-top: 30rpx;

					.line {
						width: 100%;
						height: 40rpx;
						display: flex;
						align-items: center;
						font-size: 26rpx;
						justify-content: space-between;

						.desc {
							color: #94949C;
						}

						.info {
							max-width: 400rpx;
							color: #3D3D41;
							//white-space: normal;
							word-wrap: break-word;
							text-align: right;
						}
					}
				}
			}
		}
	}
	
</style>